package com.techstar.api.service;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 
 * @author EinIce
 * @description 接口配置初始化
 * @date 2021年7月16日
 *
 */
@Configuration
public class ConfigProperties {
//	roma认证-路网运行-ALL
	@ConfigurationProperties(prefix = "traffic.roma-api")
	@Bean(name = "roma_api")
	public GateWayApiProperties romaApiProperties() {
		return new GateWayApiProperties();
	}
//	roma认证-公共交通-公共交通总览
	@ConfigurationProperties(prefix = "traffic.roma-api-overview")
	@Bean(name = "roma_api-overview")
	public GateWayApiProperties overviewRomaApiProperties() {
		return new GateWayApiProperties();
	}
//	roma认证-公共交通-常规公交
	@ConfigurationProperties(prefix = "traffic.roma-api-bus")
	@Bean(name = "roma_api-bus")
	public GateWayApiProperties busRomaApiProperties() {
		return new GateWayApiProperties();
	}
//	roma认证-公共交通-轨道交通
	@ConfigurationProperties(prefix = "traffic.roma-api-subway")
	@Bean(name = "roma_api-subway")
	public GateWayApiProperties subwayRomaApiProperties() {
		return new GateWayApiProperties();
	}
//	roma认证-公共交通-巡游出租
	@ConfigurationProperties(prefix = "traffic.roma-api-taxi")
	@Bean(name = "roma_api-taxi")
	public GateWayApiProperties taxiRomaApiProperties() {
		return new GateWayApiProperties();
	}
//	roma认证-公共交通-网约出租
	@ConfigurationProperties(prefix = "traffic.roma-api-onlinecar")
	@Bean(name = "roma_api-onlinecar")
	public GateWayApiProperties onlinecarRomaApiProperties() {
		return new GateWayApiProperties();
	}
	
	//——————————————————————————————2.1———————————————————————————————————————
	
//	实时客运量
	@ConfigurationProperties(prefix = "traffic.api.ort")
	@Bean(name = "ort")
	public TrafficApiProperties ortApiProperties() {
		return new TrafficApiProperties();
	}
//	当日小时客运量趋势
	@ConfigurationProperties(prefix = "traffic.api.othtt")
	@Bean(name = "othtt")
	public TrafficApiProperties othttApiProperties() {
		return new TrafficApiProperties();
	}
//	实时运力
	@ConfigurationProperties(prefix = "traffic.api.ort2")
	@Bean(name = "ort2")
	public TrafficApiProperties ort2ApiProperties() {
		return new TrafficApiProperties();
	}
//	年客流量趋势
	@ConfigurationProperties(prefix = "traffic.api.oytt")
	@Bean(name = "oytt")
	public TrafficApiProperties oyttApiProperties() {
		return new TrafficApiProperties();
	}
//	实时突发事件
	@ConfigurationProperties(prefix = "traffic.api.ote")
	@Bean(name = "ote")
	public TrafficApiProperties oteApiProperties() {
		return new TrafficApiProperties();
	}
	
	//——————————————————————————————2.2———————————————————————————————————————
	
//	线网统计信息
	@ConfigurationProperties(prefix = "traffic.api.nsi")
	@Bean(name = "nsi")
	public TrafficApiProperties nsiApiProperties() {
		return new TrafficApiProperties();
	}
	
//	实时客流量
	@ConfigurationProperties(prefix = "traffic.api.rt")
	@Bean(name = "rt")
	public TrafficApiProperties rtApiProperties() {
		return new TrafficApiProperties();
	}
//	当日小时客流量趋势
	@ConfigurationProperties(prefix = "traffic.api.thtt")
	@Bean(name = "thtt")
	public TrafficApiProperties thttApiProperties() {
		return new TrafficApiProperties();
	}
//	特征日日均小时客流量趋势
	@ConfigurationProperties(prefix = "traffic.api.whtt")
	@Bean(name = "whtt")
	public TrafficApiProperties whttApiProperties() {
		return new TrafficApiProperties();
	}
//	实时班次
	@ConfigurationProperties(prefix = "traffic.api.rd")
	@Bean(name = "rd")
	public TrafficApiProperties rdApiProperties() {
		return new TrafficApiProperties();
	}
//	特征日日均小时班次趋势
	@ConfigurationProperties(prefix = "traffic.api.whdt")
	@Bean(name = "whdt")
	public TrafficApiProperties whdtApiProperties() {
		return new TrafficApiProperties();
	}
//	实时充电
	@ConfigurationProperties(prefix = "traffic.api.rc")
	@Bean(name = "rc")
	public TrafficApiProperties rcApiProperties() {
		return new TrafficApiProperties();
	}
//	当日小时充电趋势
	@ConfigurationProperties(prefix = "traffic.api.thct")
	@Bean(name = "thct")
	public TrafficApiProperties thctApiProperties() {
		return new TrafficApiProperties();
	}
//	当日行政区日均OD分布
	@ConfigurationProperties(prefix = "traffic.api.tdo")
	@Bean(name = "tdo")
	public TrafficApiProperties tdoApiProperties() {
		return new TrafficApiProperties();
	}
	
//	当月日客流量趋势
	@ConfigurationProperties(prefix = "traffic.api.mdtt")
	@Bean(name = "mdtt")
	public TrafficApiProperties mdttApiProperties() {
		return new TrafficApiProperties();
	}
//	当日客流量排名
	@ConfigurationProperties(prefix = "traffic.api.ttr")
	@Bean(name = "ttr")
	public TrafficApiProperties ttrApiProperties() {
		return new TrafficApiProperties();
	}
//	当日正点执行率排名
	@ConfigurationProperties(prefix = "traffic.api.tter")
	@Bean(name = "tter")
	public TrafficApiProperties tterApiProperties() {
		return new TrafficApiProperties();
	}
//	当日小时班次趋势
	@ConfigurationProperties(prefix = "traffic.api.thdt")
	@Bean(name = "thdt")
	public TrafficApiProperties thdtApiProperties() {
		return new TrafficApiProperties();
	}
//	日均营收
	@ConfigurationProperties(prefix = "traffic.api.db")
	@Bean(name = "db")
	public TrafficApiProperties dbApiProperties() {
		return new TrafficApiProperties();
	}
//	年度日均营收趋势
	@ConfigurationProperties(prefix = "traffic.api.ydbt")
	@Bean(name = "ydbt")
	public TrafficApiProperties ydbtApiProperties() {
		return new TrafficApiProperties();
	}
//	当年日均营收排名
	@ConfigurationProperties(prefix = "traffic.api.dbr")
	@Bean(name = "dbr")
	public TrafficApiProperties dbrApiProperties() {
		return new TrafficApiProperties();
	}
//	当年日均小时充电趋势
	@ConfigurationProperties(prefix = "traffic.api.dhct")
	@Bean(name = "dhct")
	public TrafficApiProperties dhctApiProperties() {
		return new TrafficApiProperties();
	}
	
	
	//——————————————————————————————2.3———————————————————————————————————————
	
//	线网统计信息
	@ConfigurationProperties(prefix = "traffic.api.snsi")
	@Bean(name = "snsi")
	public TrafficApiProperties snsiApiProperties() {
		return new TrafficApiProperties();
	}
//	实时客流量
	@ConfigurationProperties(prefix = "traffic.api.srt")
	@Bean(name = "srt")
	public TrafficApiProperties srtApiProperties() {
		return new TrafficApiProperties();
	}
//	当日小时客流量趋势
	@ConfigurationProperties(prefix = "traffic.api.sthtt")
	@Bean(name = "sthtt")
	public TrafficApiProperties sthttApiProperties() {
		return new TrafficApiProperties();
	}
//	站点当日客流量排名
	@ConfigurationProperties(prefix = "traffic.api.sdstr")
	@Bean(name = "sdstr")
	public TrafficApiProperties sdstrApiProperties() {
		return new TrafficApiProperties();
	}
//	线路运营排名
	@ConfigurationProperties(prefix = "traffic.api.slbr")
	@Bean(name = "slbr")
	public TrafficApiProperties slbrApiProperties() {
		return new TrafficApiProperties();
	}
//	日均站站最大断面满载率排名
	@ConfigurationProperties(prefix = "traffic.api.sslr")
	@Bean(name = "sslr")
	public TrafficApiProperties sslrApiProperties() {
		return new TrafficApiProperties();
	}
//	日均线路站站最大断面满载率
	@ConfigurationProperties(prefix = "traffic.api.slsl")
	@Bean(name = "slsl")
	public TrafficApiProperties slslApiProperties() {
		return new TrafficApiProperties();
	}
//	线路当日客流量排名
	@ConfigurationProperties(prefix = "traffic.api.stltr")
	@Bean(name = "stltr")
	public TrafficApiProperties stltrApiProperties() {
		return new TrafficApiProperties();
	}
	
	//——————————————————————————————2.4———————————————————————————————————————
	
//	实时车辆
	@ConfigurationProperties(prefix = "traffic.api.trv")
	@Bean(name = "trv")
	public TrafficApiProperties trvApiProperties() {
		return new TrafficApiProperties();
	}
//	日均运营
	@ConfigurationProperties(prefix = "traffic.api.tdb")
	@Bean(name = "tdb")
	public TrafficApiProperties tdbApiProperties() {
		return new TrafficApiProperties();
	}
//	区域实时运力排名
	@ConfigurationProperties(prefix = "traffic.api.ttavr")
	@Bean(name = "ttavr")
	public TrafficApiProperties ttavrApiProperties() {
		return new TrafficApiProperties();
	}
//	日均小时运力趋势
	@ConfigurationProperties(prefix = "traffic.api.ttlst")
	@Bean(name = "ttlst")
	public TrafficApiProperties ttlstApiProperties() {
		return new TrafficApiProperties();
	}
//	当月日单车营运趋势
	@ConfigurationProperties(prefix = "traffic.api.tmbpt")
	@Bean(name = "tmbpt")
	public TrafficApiProperties tmbptApiProperties() {
		return new TrafficApiProperties();
	}
//	当月企业违规排名
	@ConfigurationProperties(prefix = "traffic.api.tmevr")
	@Bean(name = "tmevr")
	public TrafficApiProperties tmevrApiProperties() {
		return new TrafficApiProperties();
	}
//	当月违规类型分布
	@ConfigurationProperties(prefix = "traffic.api.tmvt")
	@Bean(name = "tmvt")
	public TrafficApiProperties tmvtApiProperties() {
		return new TrafficApiProperties();
	}
//	当日行政区OD分布
	@ConfigurationProperties(prefix = "traffic.api.ttdo")
	@Bean(name = "ttdo")
	public TrafficApiProperties ttdoApiProperties() {
		return new TrafficApiProperties();
	}
	
	//——————————————————————————————2.5———————————————————————————————————————
	
//	网约注册信息
	@ConfigurationProperties(prefix = "traffic.api.ocri")
	@Bean(name = "ocri")
	public TrafficApiProperties ocriApiProperties() {
		return new TrafficApiProperties();
	}
//	实时车辆
	@ConfigurationProperties(prefix = "traffic.api.ocrv")
	@Bean(name = "ocrv")
	public TrafficApiProperties ocrvApiProperties() {
		return new TrafficApiProperties();
	}
//	日均运营
	@ConfigurationProperties(prefix = "traffic.api.ocdb")
	@Bean(name = "ocdb")
	public TrafficApiProperties ocdbApiProperties() {
		return new TrafficApiProperties();
	}
//	区域实时运力排名
	@ConfigurationProperties(prefix = "traffic.api.octavr")
	@Bean(name = "octavr")
	public TrafficApiProperties octavrApiProperties() {
		return new TrafficApiProperties();
	}
//	当日载客状态趋势
	@ConfigurationProperties(prefix = "traffic.api.octlst")
	@Bean(name = "octlst")
	public TrafficApiProperties octlstApiProperties() {
		return new TrafficApiProperties();
	}
//	企业运营排名
	@ConfigurationProperties(prefix = "traffic.api.ocmebr")
	@Bean(name = "ocmebr")
	public TrafficApiProperties ocmebrApiProperties() {
		return new TrafficApiProperties();
	}
//	当月日单车营运趋势
	@ConfigurationProperties(prefix = "traffic.api.ocmbpt")
	@Bean(name = "ocmbpt")
	public TrafficApiProperties ocmbptApiProperties() {
		return new TrafficApiProperties();
	}
//	当月企业违规排名
	@ConfigurationProperties(prefix = "traffic.api.ocmevr")
	@Bean(name = "ocmevr")
	public TrafficApiProperties ocmevrApiProperties() {
		return new TrafficApiProperties();
	}
//	当月违规类型分布
	@ConfigurationProperties(prefix = "traffic.api.ocmvt")
	@Bean(name = "ocmvt")
	public TrafficApiProperties ocmvtApiProperties() {
		return new TrafficApiProperties();
	}
}
